x=float(input())
ans=0
if x!=0:
    ans=1/x
else:
    ans=0
print("f(%.1f) = %.1f"%(x,ans))